package nia.chapter2.echoclient.mutiClient;

import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * @Author: jia
 * @Descirption:
 * @Date: 2018/5/3 12:47
 * @Modified By:
 */
//多连接不能使用此注解
//@ChannelHandler.Sharable
public class MutiClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        System.out.println("客户端收到的消息："+s);
    }
}
